package com.aaa.service.aspect;

import org.aspectj.lang.annotation.Before;

/**
 * @author ${崔灿}
 * @date 2022/11/13 20:32
 **/

public class LogAdvice {
    //使用注解作为切点--指定哪个注解  @Pointcut("@annotation(org.springframework.web.bind.annotation.GetMapping)")
    private void logJoinPoint(){}

    @Before("logJoinPoint()")
    public void before(){
        System.out.println("添加getTest的前置日志");
    }
}

